
import Common from './common';



export default class {
    static extends = [Common]

    didMount = () => {
        const refs = this.models.page.get('refs');

        let top = refs['content'].offsetTop;
        let left = refs['content'].offsetLeft
        this.models.page.set({
            contentPos: {
                top: top,
                left: left
            }
        });
    }

    closeStyleSetting = () => {
        this.models.home.set({
            styleSettingVisible: false
        });
    }

    printConfig = () => {
        const config = this.models.page.get('config');

        console.log(config);
    }
}